import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios  from 'axios';
import App from './App.vue'

Vue.config.productionTip = false

Vue.use(ElementUI);


//  创建axios实例对象  配置基础参数
const instance = axios.create({
  baseURL: 'http://localhost:8888/',
  timeout: 5000,
});

// 绑定axios实例 到Vue的原型对象
Vue.prototype.$http= instance

new Vue({
  render: h => h(App),
}).$mount('#app')
